package com.ty.day4.home;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/17 17:28
 */
public abstract class Animal {
    String life;
    public void metabolism(O2 o2,Water water){
        System.out.println("新陈代谢需要："+o2+"和"+water);
    }
    public void breed(){
        System.out.println("繁殖");
    }
}
class O2{

}
class Water{

}
